﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Happy.StateManager.Internal
{
    internal sealed class FuncCondition : ICondition
    {
        private readonly Func<bool> _func;

        public FuncCondition(Func<bool> func)
        {
            _func = func;
        }

        public bool IsSatisfied()
        {
            return _func();
        }
    }
}
